/*
 * Powered By 
 * Since 2010 - 2016
 */

package com.rf.sys.service;

import java.util.List;
import java.util.Map;

import com.rf.sys.model.UserRole;
import com.rf.sys.utils.PageUtils;

public interface UserRoleService{
	
	/**
	 * 根据id获取数据
	 * @param userRoleId
	 * @return UserRole
	 */
	public UserRole getUserRoleByID(String id) throws Exception;
	
	/**
	 * 根据UserRole获取数据
	 * @param UserRole
	 * @return List<UserRole>
	 */
	public List<UserRole> getUserRole(UserRole userRole) throws Exception;
	
	/**
	 * 获取所有数据
	 * @param 
	 * @return List<UserRole>
	 */
	public List<UserRole> getUserRole() throws Exception;
	
	/**
	 * 保存信息
	 * @param UserRole
	 * @return
	 */
	public void addUserRole(UserRole userRole) throws Exception;
	
	/**
	 * 修改数据
	 * @param UserRole
	 * @return
	 */
	public void updateUserRole(UserRole userRole) throws Exception;
	
	/**
	 * 删除数据
	 * @param userRoleId
	 * @return
	 */
	public void deleteUserRole(String id) throws Exception;
	
	/**
	 * 获取数据分页
	 * @param UserRole
	 * @param limit
	 * @param offset
	 * @return Map
	 */
	public Map getUserRolePage(UserRole userRole,PageUtils pageUtils) throws Exception;
}
